import * as http from '@/utils/http'

export function sign (order_id) {
  return http.post('/v1/wx/sign', {order_id: parseInt(order_id)})
}

export function orders (item_id, type, consignee_id) {
  return http.post('/v1/orders', {item_id: parseInt(item_id), type: parseInt(type), consignee_id: parseInt(consignee_id)})
}
